/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.phone.service;

import java.util.List;

import com.jeesite.modules.file.dao.FileUploadDao;
import com.jeesite.modules.file.entity.FileUpload;
import com.jeesite.modules.sys.dao.ConfigDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.jeesite.modules.sys.entity.Config;
import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.phone.entity.Manufacturer;
import com.jeesite.modules.phone.dao.ManufacturerDao;
import com.jeesite.modules.file.utils.FileUploadUtils;

/**
 * 厂商Service
 * @author lzw
 * @version 2019-04-03
 */
@Service
@Transactional(readOnly=true)
public class ManufacturerService extends CrudService<ManufacturerDao, Manufacturer> {

	@Autowired
	private FileUploadDao fileUploadDao;
	@Autowired
	private ConfigDao configDao;

	@Autowired
	private ManufacturerDao manufacturerDao;

	/**
	 * 获取单条数据
	 * @param manufacturer
	 * @return
	 */
	@Override
	public Manufacturer get(Manufacturer manufacturer) {
		return super.get(manufacturer);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param manufacturer
	 * @return
	 */
	@Override
	public Page<Manufacturer> findPage(Page<Manufacturer> page, Manufacturer manufacturer) {
		return super.findPage(page, manufacturer);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param manufacturer
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(Manufacturer manufacturer) {
		super.save(manufacturer);
	}
	
	/**
	 * 更新状态
	 * @param manufacturer
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(Manufacturer manufacturer) {
		super.updateStatus(manufacturer);
	}
	
	/**
	 * 删除数据
	 * @param manufacturer
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(Manufacturer manufacturer) {
		super.delete(manufacturer);
	}
	
}